-- GENERATED SPELL FOR [Chained Spirit] --


function spell0_15117(pUnit, Event) --@Revive,n/a--
pUnit:FullCastSpellOnTarget(24341,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15117', 569, 1)
end

function Sorts_15117(pUnit, Event)
local choix_sorts_15117 = math.random(0, 0)
if choix_sorts_15117 == 0 then
pUnit:RegisterEvent('spell0_15117', 1, 1)
end
end

function mob15117_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15117', math.random(1500, 3000), 1)
end

function mob15117_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15117_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15117_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15117, 1, 'mob15117_Action')
RegisterUnitEvent(15117, 2, 'mob15117_Leave')
RegisterUnitEvent(15117, 3, 'mob15117_Kill')
RegisterUnitEvent(15117, 4, 'mob15117_Die')
